package com.wangle.dao;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;

import com.pro.bean.Info;
import com.dao.DBConnection;

public class InfoImpl {

//ɾ�����С����Ϣ��������ݿ��ﻹ��
	
	public boolean deletecard(Info info){
		boolean flag=true;
		Connection conn=null;
		try {
			conn=DBConnection.getConnection();
			PreparedStatement stmt=null;
			stmt=conn.prepareStatement("delete from Info where cardid=?");
			stmt.setInt(1,info.getCardid());
			stmt.executeUpdate();
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return flag;
	}
	
}
